<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
    String path=request.getContextPath();  
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>"></base>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>老师信息检索导出</title>
<link rel="stylesheet" href="js/plugins/jquery-ui/themes/redmond/jquery-ui.min.css" />
<link rel="stylesheet" href="js/plugins/jqGrid/css/ui.jqgrid.css" />
<link rel="stylesheet" href="js/plugins/ajaxFileUploader/ajaxfileupload.css" />
<link rel="stylesheet" href="css/layout.css" type="text/css" />
<script type="text/javascript" src="js/jquery-1.8.3.js"></script>
<script type="text/javascript" src="js/plugins/jqGrid/js/i18n/grid.locale-cn.js"></script>
<script type="text/javascript" src="js/plugins/jqGrid/js/jquery.jqGrid.min.js"></script>
<script type="text/javascript" src="js/plugins/jquery-ui/ui/jquery-ui.js"></script>
<script type="text/javascript" src="js/plugins/jquery-ui/ui/i18n/jquery.ui.datepicker-zh-CN.js"></script>
<script type="text/javascript" src="js/plugins/noty/jquery.noty.js"></script>
<script type="text/javascript" src="js/plugins/noty/layouts/topRight.js"></script>
<script type="text/javascript" src="js/plugins/noty/layouts/top.js"></script>
<script type="text/javascript" src="js/plugins/noty/layouts/center.js"></script>
<script type="text/javascript" src="js/plugins/noty/themes/default.js"></script>
<script type="text/javascript" src="js/plugins/ajaxFileUploader/ajaxfileupload.js"></script>

<script type="text/javascript" src="js/AC_RunActiveContent.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/tutor/tutorExport.js"></script>
<script>
    $(function() {
        setupMenu();

        setupContent();

        setupTutorExportGrid();

        setupTutorExportToolbar();

        setupTutorExportDialog();

        $.datepicker.setDefaults($.datepicker.regional[ "zh-CN" ]);
        $("#birthdayFrom").datepicker({dateFormat: "yy-mm-dd", changeMonth: true, changeYear: true, yearRange: "-99:+0"});
        $("#birthdayTo").datepicker({dateFormat: "yy-mm-dd", changeMonth: true, changeYear: true, yearRange: "-99:+0"});
    });
</script>
<style>
#tutorDetail input {
 width:150px;
}
#tutorDetail select {
 width:150px;
}
#tutorDetail textarea {
 width:400px;
}
#tutorDetail td {
 padding:5px;
}
.title {
 text-align:right;
}
.gridBtn {
 width:65px;
}
</style>
</head>
<body>
 <div id="container">
  <%@ include file="../header.jsp"%>
  <div id="mainContent">
   <div id="tabs">
    <ul>
     <li><a href="#tab">老师信息检索导出</a></li>
    </ul>
    <div id="tab">
     <div id="toolbar">
      <button id="search">老师信息检索</button>
      <button id="keywordMatch">关键字筛选</button>
      <button id="export">老师信息导出</button>
     </div>
     <table id="tutorSearch"></table>
     <div id="pager"></div>
    </div>
   </div>
   <div id="keywordDetail" title="评委信息关键字筛选">
     <div>关键字</div>
     <div><input type="text" id="keyword" class="text ui-widget-content ui-corner-all" /></div>
   </div>
   <div id="detail" title="老师信息检索条件">
    <s:form id="tutorDetail" action="tutorExcelExport.action">
     <table border="0" cellpadding="0" cellspacing="0">
      <tr>
       <td class="title">姓名</td>
       <td><input type="text" name="tutorSearch.name" id="name" maxlength="16" class="text ui-widget-content ui-corner-all" /></td>
       <td class="title">性别</td>
       <td>
         <select name="tutorSearch.sex" id="sex" class="text ui-widget-content ui-corner-all">
           <option value="-1">不限</option>
           <option value="0">女</option>
           <option value="1">男</option>
           <option value="0">女</option>
         </select>
       </td>
      </tr>
      <tr>
       <td class="title">出生日期</td>
       <td>
         <input type="text" name="tutorSearch.birthdayFrom" id="birthdayFrom" maxlength="12" class="text ui-widget-content ui-corner-all" />
       </td>
       <td>&nbsp;</td>
       <td>
         <input type="text" name="tutorSearch.birthdayTo" id="birthdayTo" maxlength="12" class="text ui-widget-content ui-corner-all" />
       </td>
      </tr>
      <tr>
       <td class="title">身份证号</td>
       <td><input type="text" name="tutorSearch.idNo" id="idNo" maxlength="18" class="text ui-widget-content ui-corner-all" /></td>
       <td class="title">居住地</td>
       <td><input type="text" name="tutorSearch.address" id="address" maxlength="18" class="text ui-widget-content ui-corner-all" /></td>
      </tr>
      <tr>
       <td class="title">类别</td>
       <td><input type="text" name="tutorSearch.type" id="type" maxlength="18" class="text ui-widget-content ui-corner-all" /></td>
       <td class="title">主讲课程</td>
       <td><input type="text" name="tutorSearch.major" id="major" maxlength="32" value="" class="text ui-widget-content ui-corner-all" /></td>
      </tr>
      <tr>
       <td class="title">讲师风格</td>
       <td><input type="text" name="tutorSearch.style" id="style" maxlength="64" value="" class="text ui-widget-content ui-corner-all" /></td>
       <td class="title">联系方式<br/>手机</td>
       <td><input type="text" name="tutorSearch.cellPhone" id="cellPhone" value="" maxlength="32" class="text ui-widget-content ui-corner-all" /></td>
      </tr>
      <tr>
       <td class="title">联系方式<br/>QQ</td>
       <td><input type="text" name="tutorSearch.imAddress" id="imAddress" value="" maxlength="32" class="text ui-widget-content ui-corner-all" /></td>
       <td class="title">联系方式<br/>电话</td>
       <td><input type="text" name="tutorSearch.phone" id="phone" maxlength="32" value="" class="text ui-widget-content ui-corner-all" /></td>
      </tr>
      <tr>
       <td class="title">联系方式<br/>邮箱</td>
       <td><input type="text" name="tutorSearch.mailAddress" id="mailAddress" maxlength="16" value="" class="text ui-widget-content ui-corner-all" /></td>
       <td class="title">助理联系方式<br/>手机</td>
       <td><input type="text" name="tutorSearch.cellPhoneBak" id="cellPhoneBak" maxlength="16" value="" class="text ui-widget-content ui-corner-all" /></td>
      </tr>
      <tr>
       <td class="title">助理联系方式<br/>电话</td>
       <td><input type="text" name="tutorSearch.phoneBak" id="phoneBak" maxlength="32" value="" class="text ui-widget-content ui-corner-all" /></td>
       <td class="title">助理联系方式<br/>邮箱</td>
       <td><input type="text" name="tutorSearch.mailAddressBak" id="mailAddressBak" maxlength="64" value="" class="text ui-widget-content ui-corner-all" /></td>
      </tr>
      <tr>
       <td class="title">合作过的课题</td>
       <td colspan="3">
         <textarea rows="3" cols="28" name="tutorSearch.task" id="task" class="text ui-widget-content ui-corner-all"></textarea>
       </td>
      </tr>
      <tr>
       <td class="title">老师简介</td>
       <td colspan="3">
         <textarea rows="3" cols="28" name="tutorSearch.introduction" id="introduction" class="text ui-widget-content ui-corner-all"></textarea>
       </td>
      </tr>
      <tr>
       <td class="title">课程大纲</td>
       <td colspan="3">
         <textarea rows="3" cols="28" name="tutorSearch.outLine" id="outLine" class="text ui-widget-content ui-corner-all"></textarea>
       </td>
      </tr>
      <tr>
       <td class="title">备注</td>
       <td colspan="3">
         <textarea rows="3" cols="28" name="tutorSearch.remark" id="remark" class="text ui-widget-content ui-corner-all"></textarea>
       </td>
      </tr>
     </table>
    </s:form>
   </div>
  </div>
 </div>
 <s:form id="rForm">
  <input type="hidden" id="tutorId" name="tutorId" />
 </s:form>
</body>
</html>
